/**
 * 
 */
package bot;

import account.Account;
import specialtriggers.FavArtistTrigger;
import specialtriggers.FavTrackTrigger;
import specialtriggers.HyllaDinNationTrigger;
import specialtriggers.HyllaDinSannaNationTrigger;
import specialtriggers.HyllaWombosNationTrigger;
import specialtriggers.NewTriggerTrigger;
import specialtriggers.NowPlayingTrigger;
import specialtriggers.ReloadTriggersTrigger;
import specialtriggers.UptimeTrigger;
import specialtriggers.VersionTrigger;
import trigger.*;

/**
 * @author Philip
 * 
 */
public class AccountLoader extends FileLoader {

	public AccountLoader(String fileName) {
		super(fileName);
	}

	@Override
	public void load(IRCBot ircBot) {
		while (scan.hasNextLine()) {
			String line = scan.nextLine();
			String[] segments = line.split(" ");
			
			Account a = new Account(segments[0], segments[1], Integer.parseInt(segments[2]), segments[3]);
			ircBot.addAccount(segments[3], a);
		}
		scan.close();
		
	}
}
